https://bookem.ir/books/1630434-Aggregation-functions-a-guide-for-practitioners-with-7-tables